﻿using System.Collections.Generic;
using System.ServiceModel;
using ThirdServices.AlertModel.Factory.Entities.DTO;
using System.ServiceModel.Web;

namespace GNSCore.Services.Contracts
{
    /// <summary>
    /// Service for getting alerts
    /// </summary>
    [ServiceContract]
    public interface IGlobalAlertsService
    {
        [OperationContract]
        [WebInvoke(Method="POST",
               BodyStyle=WebMessageBodyStyle.WrappedRequest,
               ResponseFormat=WebMessageFormat.Json)]
        List<BaseAlert> GetAlerts(string username);
    }
}